import Vue from 'vue'
import Router from 'vue-router'

//注册路由
Vue.use(Router);


// 登录
import Login from '../views/auth/login'
// 注册
import register from '../views/auth/register'
import Index from '../views/layout/index'

let router = new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path: '/login',
      name: 'login',
      component: Login,
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
  ]


});

// 抛出全局路由
export default router



